package com.demo.core.service.exception;

/**
 * 未找到用户错误异常
 * @author ryuu.kk
 *
 */
public class UserNotFoundException extends RuntimeException {

	/**
	 * 目标对象
	 */
	private Object target;
	
	/**
	 * 对象User为找到异常
	 * @param target 对象模型
	 * @param message 错误消息
	 */
	public UserNotFoundException(Object target, String message) {
		super(message);
		this.target = target;
	}

	public Object getTarget() {
		return target;
	}

	/**
	 * 版本序列化ID
	 */
	private static final long serialVersionUID = -8972754585909762381L;
}
